package player;

import java.util.ArrayList;
import java.util.List;

public class Journal {
    protected Player owner;
    protected List<JournalEntry> entries = new ArrayList<JournalEntry>();
    
    @Deprecated
    protected Journal() {}
    
    public Journal(Player owner) {
        this.owner = owner;
    }
    
    public void addEntry(JournalEntry entry) {
        entries.add(entry);
    }
    
    public List<JournalEntry> getEntries() {
        return entries;
    }
    
    @Override
    public String toString() {
        String toReturn = "";
        for(JournalEntry entry : entries) {
            toReturn += entry + "\n";
        }
        return toReturn;
    }
}
